package com.xrh.xdemo.service.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;


/**
* 用户角色关联
*/
@Data
@TableName(value = "user_vs_role" , autoResultMap = true)
@Builder
public class UserVsRoleEntity  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
    /**主键id */
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@TableId(value="id" ,type = IdType.ASSIGN_ID)
	private Long id;

	/**用户id */
	@TableField("sys_user_id")
	private Long sysUserId;

	/**角色id */
	@TableField("sys_role_id")
	private Long sysRoleId;

    @Tolerate
    public UserVsRoleEntity(){}
}
